program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  fin: TextFile;
  massx, massy: array of Integer;
  n, i, x0, y0: integer;
  flag: Boolean;
  s, s0: Real;

begin
  AssignFile(fin, 'input.txt');
  Reset(fin);
  readln(fin, n);
  SetLength(massx, n);
  SetLength(massy, n);
  flag:=True;
  for i:=0 to n-1 do
    Readln(fin, massx[i], massy[i]);
  Readln(fin, x0, y0);
  s:=0;
  s0:=0;
  for i:=0 to n-2 do
  begin
    s:=s+massx[i]*massy[i+1]-massx[i+1]*massy[i];
  end;
  s:=abs(s+massx[n-1]*massy[0]-massx[0]*massy[n-1])/2;
  for i:=0 to n-2 do
    if (flag=True) then
    begin
      s0:=s0+(abs(massx[i]*massy[i+1]-massx[i+1]*massy[i]+massx[i+1]*y0-x0*massy[i+1]+x0*massy[i]-massx[i]*y0))/2;
      if (s0>s) then
      begin
        Writeln('Your point is out of given polygon');
        flag:=false;
      end;
    end;
  if (flag=True) then
  begin
     s0:=s0+(abs(massx[n-1]*massy[0]-massx[0]*massy[n-1]+massx[0]*y0-x0*massy[0]+x0*massy[n-1]-massx[n-1]*y0))/2;
    if (s0>s) then
    begin
      Writeln('Your point is out of given polygon');
      flag:=False;
    end;
  end;
  if (flag=True) then
    Writeln('Given polygon contains your point');
  Readln;
  CloseFile(fin);
end.
 